package com.lzc.service.impl;

import java.util.List;

import org.apache.log4j.Logger;

import com.lzc.dao.ClientDao;
import com.lzc.dao.impl.ClientDaoImpl;
import com.lzc.pojo.Client;
import com.lzc.service.ClientService;

public class ClientServiceImpl implements ClientService{
	
	//声明日志对象
	Logger logger = Logger.getLogger(UserServiceImpl.class);
	//声明Dao层对象
	ClientDao cd = new ClientDaoImpl();
	
	/**
	 * 添加客户信息
	 */
	@Override
	public int ClientUploadService(Client c) {
		// TODO Auto-generated method stub
		return cd.ClientUploadDao(c);
	}

	@Override
	public List<Client> clientShowService(String page) {
		List<Client> lc = cd.clientShowDao(page);
		logger.debug("显示所有用户信息："+lc);
		return lc;
	}

}
